import React,{Component} from 'react'
// import {Button} from 'antd'
export default class Login extends Component{
    constructor(props){
        super(props);
        this.setState({

        })
    }
    login=()=>{
        localStorage.setItem('username',123)
        this.props.history.push('/Home')
    }
    render(){
        return(
            <button onClick={this.login}>登录</button>
        )
    }
}